/*
 * @Project Name: spring-boot
 * @File Name: UserService
 * @Package Name: com.hhly.spring.boot.cache
 * @Date: 2017/12/13 17:52
 * @Creator: linshixing-1199
 * @line------------------------------
 * @修改人:
 * @修改时间:
 * @修改内容:
 */

package com.sm.shoplook.service.customer;

import com.sm.shoplook.domain.customer.Customer;
import com.sm.shoplook.vo.base.ApiException;
import com.sm.shoplook.vo.base.ApiResult;
import com.sm.shoplook.vo.customer.RegCustomerReqVo;

/**
 * @author chenpy-1072
 * @desc 会员
 * @date 2018/08/13
 * @see
 */
public interface ApiCustomerService {

	ApiResult<String> login(Customer customer);

	ApiResult<String> insertCustomer(RegCustomerReqVo regCustomerReqVo) throws ApiException;

	ApiResult<Customer> selectCustomerById(Integer customerId);

	ApiResult<String> updateCustomer(Customer customer) throws ApiException;

	ApiResult<Integer> updatePassword(Integer id, String oldPassword, String updNewPassword, String updConfirmPassword)
			throws ApiException;

	ApiResult<Integer> updateForgetPassword(String account, String password, String confirmPassword, String authCode)
			throws ApiException;

	/**
	 * 注册发送验证码
	 * @param account
	 * @param type
     * @return
	 */
	ApiResult sendSms(String account, Integer type);
}
